Release 10.1A: OpenEdge Development:
Progress 4GL Reference
OS-RENAME statement
Executes an operating system file rename or directory rename command from within Progress.
Syntax
source-filenameThe name of the file or directory to rename.
VALUE (expression)An expression that returns the name of the file or directory to rename.
expressioncan contain constants, field names, and variable names.target-filenameThe new name of the file or directory.
VALUE (expression)An expression that returns the new name of the file or directory.
Exampleexpressioncan contain constants, field names, and variable names.This procedure opens a dialog box that prompts the user to choose a file to rename. It then prompts for a new name. Finally, the procedure uses the OS-RENAME statement to rename the file.
Notes
- The filenames or directory names must conform to the naming conventions of the underlying operating system.
- If
source-filenameandtarget-filenamespecify different directories, this statement both renames the file and moves it to the new directory.- Although an error can occur during execution of this statement, the statement does not generate an error message, raise an error condition, or affect the program’s flow in any way. Check for an execution error by using the OS-ERROR function and evaluating the return.
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |